import LgNavCustomBar from '../pages/components/navCustomBar'
import { View } from '@tarojs/components'
import Taro from '@tarojs/taro'
import Utils from '../utils/index' 
import './index.scss'

const {
getNowEnvironment
}=Utils

function App(props) {
    const  { isleft,title,goBack }=props
      // console.log(goBack);
      
      return (
          <LgNavCustomBar
              mainTitle={title || '周行事历'}
              className="server_tabs"
              isTitlePositionLeft={isleft?false:true}
              style={{ paddingTop: props.height }}
              onClick={goBack ? goBack : ''}
              needBackIcon={getNowEnvironment()&&title!=='周行事历详情'?false:true}
              needMainIcon={getNowEnvironment()?false:true}
          />
      );
  }

export default App;